package com.group_e.Bubble.client;

import java.util.Date;

public class Task {
		
	private String task_name;
	private Date task_date;
	private String task_due_date;
	private String task_tag1;
	private String task_tag2;
	private String task_tag3;
	private String task_tag4;
	private String task_descrip;
	private boolean tag1_exist = false;
	private boolean tag2_exist = false;
	private boolean tag3_exist = false;
	private boolean tag4_exist = false;
	private Long task_id;
	private Date remove_date;
	private Date complete_date;
		
	public Task(String name)
	{
		task_name = name;
		task_date = new Date();
		task_due_date = null;
		task_tag1 = null;
		task_tag2 = null;
		task_tag3 = null;
		task_tag4 = null;
		task_descrip = null;
		remove_date = null;
		complete_date = null;
	}
	public Task()
	{
		
	}
	public Task(String name, Date date)
	{
		this.task_name = name;
		this.task_date = new Date();
	}
	public Task(String name, Date date, String descrip, String duedate)
	{
		this.task_name = name;
		this.task_date = new Date();
		this.task_descrip = descrip;
		
	}
		
	public void setTask_Name(String name)
	{
		task_name = name;
	}
	public void setTask_Date(Date timestamp)
	{
		task_date = new Date();
	}
	public void setTask_Due_Date(String due_date)
	{
		task_due_date = due_date;
	}
	public void setTask_Descrip(String descrip)
	{
		task_descrip = descrip;
	}
	public void setTask_Tag(String tag1, String tag2, String tag3, String tag4)
	{
		task_tag1 = tag1;
		if(getTask_Tag1().equals(null))
			tag1_exist = true;
		task_tag2 = tag2;
		if(getTask_Tag2().equals(null))
			tag2_exist = true;
		task_tag3 = tag3;
		if(getTask_Tag3().equals(null))
			tag3_exist = true;
		task_tag4 = tag4;
		if(getTask_Tag4().equals(null))
			tag4_exist = true;
	}
	public void setTask_Tag1(String tag1)
	{
		task_tag1 = tag1;
		tag1_exist = true;
	}
	public void setTask_Tag2(String tag2)
	{
		task_tag2 = tag2;
		tag2_exist = true;
	}
	public void setTask_Tag3(String tag3)
	{
		task_tag3 = tag3;
		tag3_exist = true;
	}
	public void setTask_Tag4(String tag4)
	{
		task_tag4 = tag4;
		tag4_exist = true;
	}
	public String getTask_Name()
	{
		return task_name;
	}
	public String getTask_Date()
	{
		return task_date.toString();
	}
	public String getTask_Due_Date()
	{
		return task_due_date;
	}
	public String getTask_Descrip()
	{
		return task_descrip;
	}
	public String getTask_Tag()
	{
		String tag = task_tag1 + " " + task_tag2 + " " + task_tag3 + " " + task_tag4;
		return tag;
	}
	public String getTask_Tag1()
	{
		return task_tag1;
	}
	public String getTask_Tag2()
	{
		return task_tag2;
	}
	public String getTask_Tag3()
	{
		return task_tag3;
	}
	public String getTask_Tag4()
	{
		return task_tag4;
	}
	public boolean getTag1_Exist()
	{
		return tag1_exist;
	}
	public boolean getTag2_Exist()
	{
		return tag2_exist;
	}
	public boolean getTag3_Exist()
	{
		return tag3_exist;
	}
	public boolean getTag4_Exist()
	{
		return tag4_exist;
	}
	public Long getTask_Id()
	{
		return task_id;
	}
	public void setTask_Id(Long id)
	{
		task_id = id;
	}
	public Date getTask_Remove_Date()
	{
		return remove_date;
	}
	public Date getTask_Complete_Date()
	{
		return complete_date;
	}
	public String getTask_Complete_Date_S()
	{
		return complete_date.toString();
	}
	public String getTask_Remove_Date_S()
	{
		return remove_date.toString();
	}
	public void setRemove_Date()
	{
		this.remove_date = new Date();
	}
	public void setComplete_Date()
	{
		this.complete_date = new Date();
	}
}


